package org.rcy.framework.storage.huaweicloud.obs.io;

import java.io.IOException;
import java.io.InputStream;

/**
 * @author 吴康桥
 * @Description
 * @date 2023/7/5 9:48
 */


public class HuaweiCloudStorageInputStream extends InputStream {

	private InputStream inputStream;

	public HuaweiCloudStorageInputStream(InputStream inputStream){
		this.inputStream = inputStream;
	}

	public InputStream getInputStream() {
		return this.inputStream;
	}

	public int read() throws IOException {
		return this.inputStream.read();
	}

	public int read(byte[] b) throws IOException {
		return this.inputStream.read(b);
	}

	public int read(byte[] b, int off, int len) throws IOException {
		return this.inputStream.read(b, off, len);
	}

	public long skip(long n) throws IOException {
		return this.inputStream.skip(n);
	}

	public int available() throws IOException {
		return this.inputStream.available();
	}

	public void close() throws IOException {
		this.inputStream.close();
	}

	public synchronized void mark(int readlimit) {
		this.inputStream.mark(readlimit);
	}

	public synchronized void reset() throws IOException {
		this.inputStream.reset();
	}

	public boolean markSupported() {
		return this.inputStream.markSupported();
	}
}
